/*
*
* This file is part of xVideoServiceThief,
* an open-source cross-platform Video service download
*
* Copyright (C) 2007 - 2014 Xesc & Technology
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with xVideoServiceThief. If not, see <http://www.gnu.org/licenses/>.
*
* Contact e-mail: Xesc <xeskuu.xvst@gmail.com>
* Program URL   : http://xviservicethief.sourceforge.net/
*
*/

function RegistVideoService()
{
	this.version = "1.0.4a";
	this.minVersion = "2.0.0a";
	this.author = "Xesc & Technology 2014";
	this.website = "http://www.keezmovies.com/";
	this.ID = "keezmovies.com";
	this.caption = "KeezMovies";
	this.adultContent = true;
	this.musicSite = false;
}

function getVideoInformation(url)
{
	// video information
	var result = new VideoDefinition();
	// download webpage
	var http = new Http();
	var html = http.downloadWebpage(url);
	// get video title
	result.title = copyBetween(html, "<title>", "</title>");
	result.title = strReplace(result.title, "- KeezMovies.com", "");
	// get the xml url
	var xmlUrl = copyBetween(html, ";video_url=", "&amp;postroll_url");
	// get url
	result.URL=cleanUrl(xmlUrl);
	// return the video information
	return result;
}

function getVideoServiceIcon()
{
	return new Array(
		0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
		0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x08,0x03,0x00,0x00,0x00,0x28,0x2d,0x0f,
		0x53,0x00,0x00,0x00,0xdb,0x50,0x4c,0x54,0x45,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xf8,
		0xfb,0xfd,0xa2,0xd2,0xeb,0x5b,0xb0,0xdd,0x90,0xc9,0xe8,0xe3,0xf1,0xf9,0x23,0x95,
		0xd2,0x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,0x43,0xd1,0x14,0x1a,0xbc,0x80,0xc6,
		0x1a,0x77,0x77,0x77,0x97,0xfd,0xaf,0x88,0x5f,0x3d,0xe2,0xf0,0x86,0x77,0x90,0xe0,
		0x27,0x65,0xc2,0xbf,0x00,0x2e,0xb7,0xc7,0xfb,0x23,0xf0,0xf9,0xc9,0x00,0x82,0xa1,
		0x70,0x24,0x1a,0xd3,0xf1,0x84,0x02,0x92,0xb4,0x52,0xe9,0x0c,0xb3,0x39,0x2d,0xd9,
		0x02,0x79,0xe6,0x0b,0x64,0xb1,0x54,0xae,0x54,0x6b,0xb6,0x16,0xa8,0xd3,0x22,0x1b,
		0x4d,0x48,0x2d,0x03,0x6d,0x4a,0x1d,0x48,0xdd,0x5e,0x5f,0x0f,0x14,0x02,0x06,0x86,
		0x29,0x60,0x20,0x13,0xa3,0xb1,0xc2,0x84,0x99,0x29,0x39,0xc3,0xdc,0xd6,0x8b,0x25,
		0xa0,0xb0,0xe2,0xda,0x67,0xc9,0xf3,0x32,0xb6,0xd9,0xc2,0xc0,0x8e,0x53,0xec,0xc9,
		0x3a,0x0e,0xdb,0xa3,0x03,0x27,0x9e,0x80,0x33,0x87,0x72,0x79,0x71,0xe0,0xda,0xb8,
		0x01,0xf7,0xc7,0xf3,0xa5,0xf5,0xdb,0x81,0x26,0x4c,0x82,0x9f,0x31,0x1c,0xf8,0x4b,
		0x7d,0x01,0x98,0xc7,0x0f,0x50,0x64,0xb8,0xea,0xdd,0x00,0x00,0x00,0x00,0x49,0x45,
		0x4e,0x44,0xae,0x42,0x60,0x82);
}
